﻿using MediatR;
using S.EliminationOrDath.API.Dtos;
using S.EliminationOrDath.Domain.Models;

namespace S.EliminationOrDath.API.Application.Command.EOrDCommand
{
    /// <summary>
    /// 定义中介者方法--淘汰类
    /// </summary>
    public class EliminationCommand
    {
        /// <summary>
        /// 批量添加
        /// </summary>
        public class AddsEliminationCommand : IRequest<bool>
        {
            /// <summary>
            /// 淘汰Dto的List批量存放数据
            /// </summary>
            public List<EliminationDtos?>? eliminations { get; set; }
        }
    }
    /// <summary>
    /// 批量审核
    /// </summary>
    public class ExamineStatusCommand : IRequest<int> 
    {
        /// <summary>
        /// 淘汰Dto
        /// </summary>
        public List<EliminationDtos?>? eliminationDtos { get; set; }
        /// <summary>
        /// 上下架状态
        /// </summary>
        public bool onShelf { get; set; }
        /// <summary>
        /// 用户编号
        /// </summary>
        public int UserId { get; set; }
        /// <summary>
        /// 用户名称
        /// </summary>
        public string? UserName { get; set; }
    }
    /// <summary>
    /// 修改淘汰信息
    /// </summary>
    public class UpdEliminationCommand : IRequest<bool>
    {
        /// <summary>
        /// 淘汰Dto
        /// </summary>
        public EliminationDtos? eliminationDtos { get; set; }
    }
    /// <summary>
    /// 批量删除淘汰信息
    /// </summary>
    public class DelEliminationCommand : IRequest<bool>
    {
        /// <summary>
        /// 编号
        /// </summary>
        public string? ids { get; set; }
    }
}
